<template>
    <div class="box">
        <div class="top">饿了么</div>
        <header>
            <!-- <van-image class="van" round width="2rem" height="2rem" src="https://img01.yzcdn.cn/vant/cat.jpeg" /> -->
            <div class="text" >
                <p></p>
                <p></p>
            </div>
        </header>
        <div class="chihuo">
            <p>吃货卡 | 吃货豆</p>
            <p>升级超级吃货卡，每月无门槛红包下单，快来领取</p>
        </div>
        <div class="hongyu">
            <div class="left">
                <div class="left_top">
                    <!-- <van-icon name="bill-o" /> -->
                    <span>红包</span>
                </div>
                <p>7张今日到账</p>
            </div>
            <div class="right">
                <div class="right_top">
                    <!-- <van-icon name="balance-o" /> -->
                    <span>余额</span>
                </div>
                <p>0元</p>
            </div>
        </div>
        <div class="tool">
            <div class="tool_top">常用工具</div>
            <div class="tool_bottom">
                <div class="tool_one" @click="mineaddress">
                    <!-- <van-icon name="location-o" size="24" /> -->
                    <p>我的地址</p>
                </div>
                <div class="tool_one">
                    <!-- <van-icon name="service-o" size="24" /> -->
                    <p>我的客服</p>
                </div>
                <div class="tool_one" @click="minefocus">
                    <!-- <van-icon name="like-o" size="24"/> -->
                    <p>店铺关注</p>
                </div>
                <div class="tool_one">
                    <!-- <van-icon name="star-o" size="24"/> -->
                    <p>评价有礼</p>
                </div>
            </div>
        </div>
        <div class="square">
            <div class="square_left">
                <p>邀请好友赚现金</p>
                <p>最高得15元</p>
                <div class="square_bottom">
                    <!-- <van-icon name="vip-card-o" size="40" class="icon"/> -->
                    <div class="down">
                    <span>去邀请</span>
                    <span>去邀请</span>
                    </div>
                </div>
            </div>
            <div class="square_left">
                <p>饿了么服务号</p>
                <p>关注后及时关注系统通知</p>
                <div class="square_bottom">
                    <!-- <van-icon name="gift-o" size="40" class="icon"/> -->
                    <div class="down">
                    <span>去邀请</span>
                    <span>去邀请</span>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
</script>

<style scoped>
.box {
    width: 100%;
    height: 100%;
}

header {
    width: 95%;
    height: 50px;
    /* background-color: aquamarine; */
    display: flex;
    margin: 0 auto;
    box-sizing: border-box;
}

header .text {
    height: 100%;
    width: 300px;
    margin-left: 5px;

}

.van {
    margin: 7px 10px;

}

header .text p:nth-child(1) {
    font-size: 14px;
    font-weight: 700;
    margin-top: 10px;
}

header .text p:nth-child(2) {
    font-size: 10px;
    color: #807e7e;
}

.chihuo {
    height: 50px;
    width: 95%;
    background-color: rgb(40, 175, 220);
    border-radius: 10px;
    box-sizing: border-box;
    margin: 0 auto;
    margin-top: 10px;
    padding-left: 10px;
}

.chihuo p:nth-child(1) {
    color: white;
    font-size: 16px;
    padding-top: 5px;
}

.chihuo p:nth-child(2) {
    color: wheat;
    font-size: 12px;
    margin-top: 5px;
}

.hongyu {
    height: 80px;
    width: 95%;
    /* background-color: rgb(27, 50, 58); */
    border-radius: 10px;
    box-sizing: border-box;
    margin: 0 auto;
    margin-top: 10px;
    padding-left: 10px;
    display: flex;
    align-items: center;
    box-shadow: 0px 0px 2px;
}

.hongyu .left {
    width: 50%;
    height: 100%;
    text-align: center;
    margin-top: 25px;
   
}
.hongyu .left p{
    font-size: 12px;
    margin-top: 10px;
}

.hongyu .right {
    width: 50%;
    height: 100%;
    text-align: center;
    margin-top: 25px;
    font-size: 16px;
}
.hongyu .right p{
    font-size: 12px;
    margin-top: 10px;
}
.tool{
    height: 90px;
    width: 95%;
    /* background-color: rgb(27, 50, 58); */
    border-radius: 10px;
    box-sizing: border-box;
    margin: 0 auto;
    margin-top: 10px;
    padding-left: 10px;
    box-shadow: 0px 0px 2px;
}
.tool .tool_top{
    height: 20px;
    width: 100%;
    font-size: 14px;
    font-weight: 700;
    padding-left: 10px;
    padding-top:7px;
}
.tool .tool_bottom{
    height: 60px;
    width: 100%;
    display: flex;
    justify-content: space-around;
}
.tool_one{
    width: 25%;
    height: 100%;
    text-align: center;
    margin-top: 10px;
}
.tool_one p{
    padding-top: 5px;
    font-size: 12px;
}
.square{
    height: 200px;
    width: 95%;
    /* background-color: rgb(27, 50, 58); */
    border-radius: 10px;
    box-sizing: border-box;
    margin: 0 auto;
    margin-top: 10px;
    /* padding-left: 10px; */
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.square_left{
    width: 49%;
    height: 100%;
    /* background-color: #807e7e; */
    border-radius: 7px;
    box-shadow: 0px 0px 2px;
}
.square_left p:nth-child(1){
    font-size: 16px;
    font-weight: 700;
    margin-top: 10px;
    margin-left: 18px;
}
.square_left p:nth-child(2){
    font-size: 12px;
    color: wheat;
    margin-top: 5px;
}
.square_bottom{
    height: 100px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}
.icon{
    margin-top: 20px;
}
.down{
    margin-top: 15px;
}
.down span{
    margin-right: 10px;

    font-size: 12px;
}
.top{
    height: 30px;
    line-height: 30px;
    margin-left: 10px;
    font-weight: 600;
}
</style>